




#ifndef ColorSpaceConverter_h
#define ColorSpaceConverter_h



class ColorSpaceConverter {

public:

    ColorSpaceConverter (int Width, int Height);

    ~ColorSpaceConverter ();

    void Convert422To444 (unsigned char* source,
                          unsigned char* dest);

    void Convert420TO422 (unsigned char* source,
                          unsigned char* dest);

    void Convert444ToRGB (unsigned char* source,
                          unsigned char* dest);

    void Convert420ToRGB (unsigned char* source,
                          unsigned char* dest);

private:

    int width;
    int height;

    unsigned char* frame422;
    unsigned char* frame444;

};

#endif